package com.lpit.service.impl;

import com.lpit.mapper.AfficheMapper;
import com.lpit.pojo.Affiche;
import com.lpit.result.ResponseResult;
import com.lpit.service.AfficheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AfficheServiceImpl implements AfficheService {
    @Autowired
    AfficheMapper afficheMapper;
    /**查看系统公告列表*/
    @Override
    public ResponseResult<List<Affiche>> findAllByOrderReleaseTimeDesc() {
        List<Affiche> affiches = afficheMapper.surveyAffiche();
        return new ResponseResult<>(affiches);
    }
}
